﻿using DrawTools.Tools;
using System.Windows;

namespace DrawTools.Serialize
{
    public sealed class DrawAngleSerializer : DrawGeometrySerializerBase
    {
        public override DrawGeometryBase Deserialize(DrawingCanvas drawingCanvas)
        {
            var draw = new AngleDrawTool(drawingCanvas);
            draw.DeserializeFrom(this);
            return draw;
        }

        public Point TextPoint { get; set; }

        public double TextAngle { get; set; }

        public Point TextCenterPoint { get; set; }

        public Point? Vertex { get; set; }
    }
}